package com.ease.access.workbench.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ease.access.workbench.service.CoolPerspectiveAccessService;
import com.ease.model.term.CoolPerspective;
import com.ease.model.term.criteria.CoolPerspectiveCriteria;
import com.ease.platform.access.service.impl.AbstractParameterizedBeanIbatisAccessServiceImpl;

public class CoolPerspectiveAccessServiceImpl extends AbstractParameterizedBeanIbatisAccessServiceImpl<CoolPerspective> implements CoolPerspectiveAccessService {

	public CoolPerspective findByCode(String code) {
		Map<String, Object> parameter = new HashMap<String, Object>();
		parameter.put("code", code);
		return this.findOne(parameter);
	}

	public List<CoolPerspective> findEnabled() {
		CoolPerspectiveCriteria parameter = new CoolPerspectiveCriteria();
		parameter.setEnabled(true);
		return this.find(parameter);
	}

}
